import request from '@/utils/request'

// 获取文章分类列表
export const getCartListAPI = () => {
  return request.get('/my/cate/list')
}
// 新增文章分类
export const addCartListAPI = obj => {
  return request.post('/my/cate/add', obj)
}
// 根据 id 删除文章分类
export const delCartListAPI = id => {
  return request.delete('/my/cate/del', { params: { id } })
}
// 根据 id 获取文章分类数据
export const updateCategoryAPI = data => {
  return request.put('/my/cate/info', data)
}
